package com.mtsmda.chapter6;

public class StringBuilderEx {
	
	public static void main(String[] args) {
		
		StringBuilder builder = new StringBuilder("Dima");
		System.out.println(builder.append(false));
		System.out.println(builder);
		System.out.println(builder.delete(0, 0 + 4));
		System.out.println(builder);
		System.out.println(builder.insert(0, " Niva "));
		System.out.println(builder);
		System.out.println(builder.insert(builder.length() - 5, " Gazeli "));
		System.out.println(builder);
		System.out.println(builder.reverse());
		System.out.println(builder);
//		builder.equals(obj);// not overridden
	}
	
}